home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Sound / Juke-Box folder / Juke-Box Demo v 1.1 / Juke-Box Demo v 1.92 / 00145_-demo.ls < prev    next >
Encoding:
Text File  |  1994-10-17  |  641 b   |  25 lines

  1. on mouseDown
  2.   set spriteNumber to the clickOn
  3.   puppetSprite(spriteNumber, 1)
  4.   set normal to the name of cast the mouseCast
  5.   set pressed to the name of cast the mouseCast
  6.   put "‚Ä¢" into char 1 of pressed
  7.   if pressed = "‚Ä¢" then
  8.     puppetSprite(spriteNumber, 1)
  9.     exit
  10.   end if
  11.   repeat while the mouseDown
  12.     set the castNum of sprite spriteNumber to cast pressed
  13.     if not rollOver(spriteNumber) then
  14.       puppetSprite(spriteNumber, 0)
  15.       exit
  16.     end if
  17.     updateStage()
  18.   end repeat
  19.   set the castNum of sprite spriteNumber to cast normal
  20.   puppetSprite(spriteNumber, 0)
  21.   updateStage()
  22.   puppetSound(0)
  23.   go("menu")
  24. end
  25.